public class Main {
    public static void main(String[] args) {
        Animal a  = new Animal() {
            @Override
            void run() {
                System.out.println("老虎跑得快");
            }
        };
        a.run();
    }

}

//class Tiger extends Animal{
//    @Override
//    void run() {
//        System.out.println("老虎跑得快");
//    }
//}

abstract class Animal{
     abstract void run();
}
